package com.study.myteach.责任链模式;

/**
 * @author lk
 * @date 2021/4/23 0023 11:33
 * @description:
 */
public class Client {
    public static void main(String[] args) {
        Order order = new Order();
        order.setPrice(90000);
        Manager manager = new Manager();
        VicePresident vicePresident = new VicePresident();
        President president = new President();
        manager.setSuccesor(vicePresident);
        vicePresident.setSuccesor(president);
        president.setSuccesor(null);

        manager.processOrder(order);
    }
}
